var e = require("../../utils/http.js"),
  t =
    (require("../../utils/api.js"),
    require("../../utils/language/switchLanguage.js"));
Page({
  data: { content: {} },
  onLoad: function (e) {
    this.setData({
      orderNo: e.orderNo,
      merchantNo: wx.getStorageSync("merchantNo"),
    }),
      this.getOrderDetail({ orderSn: e.orderNo }),
      this.initLanguage();
  },
  initLanguage: function () {
    var e = t.languageVersion(wx.getStorageSync("language"));
    this.setData({ _t: e, languageType: wx.getStorageSync("language") }),
      wx.setNavigationBarTitle({ title: e["订单详情"] });
  },
  getOrderDetail: function (t) {
    var n = this;
    e.getOrderDetail(t).then(function (e) {
      var t = e.data;
      n.setData({ content: t });
    });
  },
  CancelOrder: function (e) {
    wx.navigateTo({
      url: "plugin-private://wx393d60d93f70599c/pages/teamCancel-order/index?orderSn=".concat(
        this.data.content.orderSn,
      ),
    });
  },
  toPage: function () {
    wx.navigateTo({
      url:
        "plugin-private://wx393d60d93f70599c/pages/Rule/index?orderType=" +
        this.data.content.orderType +
        "&teamType=" +
        this.data.content.teamType,
    });
  },
  CallPhone: function () {
    wx.makePhoneCall({ phoneNumber: wx.getStorageSync("telphoneNumber") });
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
});
